<div id="banner">
	<div class="logo">
		<a href="http://ishali.vn"><img
			src="<?php echo STYLE."/public/default/"?>images/logo.png" /></a>
	</div>
	<div class="tenct"><?php echo ishali ?></div>
	<div style="clear: both"></div>
	<div class="slogan" style="font-size: 15px;"><?php echo slogan?></div>
</div>
<!--End #banner-->
<?php if(Zend_Controller_Front::getInstance()->getRequest()->getControllerName() =='index' &&  Zend_Controller_Front::getInstance()->getRequest()->getActionName() == 'index' ):?>
<div id="banner_img">
<?php else:?>
<div id="banner_img_2">
<?php endif;?>
<?php $category = new Default_Model_DbTable_Menu(); $cat = $category->getAllMenu();?>
	<div id="menu">
			<ul class="menu">
		<?php foreach($cat as $c):?>
		<?php if($c["PARENT_ID"]==0):?>
					<?php if($c["CONTROLLER"] == '#'){?>
					<li><a href="javascript:;"><span><?php echo $c["MENU_NAME"]?></span></a>
					<?php }else{?>
				<li><a href="<?php echo DOMAIN."/".$c["CONTROLLER"]?>"
					class="parent"><span><?php echo $c["MENU_NAME"]?></span></a>
					<?php }?>
		<?php if(sizeof($category->getMenuByParent($c["ID"],1)) > 0):?>		
		<div>
						<ul>		
		<?php foreach ($category->getMenuByParent($c["ID"],1) as $sub):?>
			
			
			<li><a href="<?php echo DOMAIN."/".$sub["CONTROLLER"]?>"><span><?php echo $sub["MENU_NAME"]?></span></a>

								<div>
				<?php foreach ($category->getMenuByParent($sub["ID"],1) as $thirdSub):?>
					<ul style="margin-bottom: -20px;">
								
										<li><a href="<?php echo DOMAIN."/".$thirdSub["CONTROLLER"]?>"><span><?php echo $thirdSub["MENU_NAME"]; ?></span></a></li>

									</ul>
				<?php endforeach; ?></div></li>
			
			
		<?php endforeach; ?>
		
		</ul>
					</div>
		<?php endif;?>
		</li>
	<?php endif; ?>
<?php endforeach; ?>
			</ul>
		</div>
		<!--End #menu-->
		<div id="copyright">
			Copyright &copy; 2012 <a href="http://apycom.com/">Apycom jQuery
				Menus</a>
		</div>
	</div>
	<!--End #banner_img-->